import { ApiProperty } from '@nestjs/swagger';
import { IsArray, IsBoolean, ArrayNotEmpty, IsNumber } from 'class-validator';

/**
 * 批量更新套餐状态DTO
 */
export class BatchUpdateStatusDto {
  @ApiProperty({
    description: '套餐ID数组',
    example: [1, 2, 3],
    type: [Number],
  })
  @IsArray()
  @ArrayNotEmpty()
  @IsNumber({}, { each: true })
  ids: number[];

  @ApiProperty({
    description: '是否启用',
    example: true,
  })
  @IsBoolean()
  isActive: boolean;
}